<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue2数据响应</title>
</head>
<body>
    <script type="module">
        import observe from './js/17_Vue2Reactive/observe.js'
        let obj = {
            a: {
                a1: [1, 2, 3, 4],
                a2: {
                    a22: '我是a22'
                },
                a3: '我是a3'
            },
            b: '我是b' ,
            c: ['c1', 'c2', ['c11', 'c22']]
        }
        observe(obj)
        console.log(obj)
        obj.c.push('c3')

        // let obj1 = 'not a object'
        // observe(obj1)
        // console.log(obj1)
    </script>
</body>
</html>